GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 75229a...a07b43 )
by Sebastian
02:01
created

domReady.js ➔ ... ➔ scrollCheck   A

Complexity

Conditions 2
Paths 3

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 15
rs 9.9
c 1
b 0
f 0
cc 2
nc 3
nop 0
1
'use strict';
2
3
function domReady(fn) {
4
    var fns = [],
5
        listener,
6
        doc = typeof document === 'object' && document,
7
        hack = doc && doc.documentElement.doScroll,
8
        domContentLoaded = 'DOMContentLoaded',
9
        loaded = doc && (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);
10
11
    if (!loaded && doc) {
12
        doc.addEventListener(domContentLoaded, listener = function () {
13
            doc.removeEventListener(domContentLoaded, listener);
14
            loaded = 1;
15
            while (listener = fns.shift()) {
16
                listener();
17
            }
18
        })
19
    }
20
21
    if (loaded) {
22
        setTimeout(fn, 0);
23
    } else {
24
        fns.push(fn);
25
    }
26
}
27